/*
 * @Author: DUST
 * @Date: 2023-06-28 15:13:10
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-29 09:27:11
 * @FilePath: \vite-project\src\views\browse\website\index.ts
 * @Description: 
 * undefined
 */

import { websiteList } from "@/api/forceEnd";
import forceEndList from "@/class/forceEndList";
import { RouteLocation } from "vue-router";
import { websiteInterface } from "@/views/admin/navigate";

interface websiteItem {
  index: number;
  name: string;
  id: number;
  websites: Array<websiteInterface>
}

class Website extends forceEndList<websiteItem> {

  constructor(currentRoute: RouteLocation) {
    super({ AJAXFunc: websiteList, routeMatched: currentRoute.matched });
  }
}

export default Website;